//package fun.formoji.commons.oauth;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.redis.connection.RedisConnectionFactory;
//import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore;
//
///**
// * <code>OauthConfig</code>
// * <desc>
// * 描述：
// * <desc/>
// * <b>Creation Time:</b> 2020/12/16 17:45.
// *
// * @author hshe
// */
////@Configuration
//public class OauthConfig {
//
//    private final RedisConnectionFactory redisConnectionFactory;
//
//    @Autowired
//    public OauthConfig(RedisConnectionFactory redisConnectionFactory) {
//        this.redisConnectionFactory = redisConnectionFactory;
//    }
//
//    @Bean
//    public RedisTokenStore redisTokenStore() {
//        return new RedisTokenStore(redisConnectionFactory);
//    }
//}
